package org.dru.clay.logger;

import java.util.logging.Level;

public class LoggerFactory {
	public static final String LIFECYCLE = "lifecycle";

	public static Logger getLogger(Class<?> clazz) {
		java.util.logging.Logger general = java.util.logging.Logger.getLogger(clazz.getName());
		java.util.logging.Logger lifecycle = java.util.logging.Logger.getLogger(LIFECYCLE);

		general.setLevel(Level.FINE);
		lifecycle.setLevel(Level.INFO);

		return new UtilLogger(general, lifecycle);
	}
}
